package com.egghiro.j2se.game.sace.state.actorstate;

import com.egghiro.framework.j2se.game.controller.state.actorstate.ActorState;
import com.egghiro.framework.j2se.game.model.element.LinearVelocity2D;
import com.egghiro.j2se.game.sace.model.actor.Flyer;

public abstract class FlyerState extends ActorState {
    private Flyer flyer;
    protected LinearVelocity2D speed;

    public FlyerState(Flyer flyer, double speed, double angle) {
        this(flyer, new LinearVelocity2D(speed, angle));
    }

    public FlyerState(Flyer flyer, LinearVelocity2D speed) {
        this.flyer = flyer;
        this.speed = speed;
    }

    protected Flyer getFlyer() {
        return this.flyer;
    }

    public double getAngleInDigree() {
        return speed.getAngleInDigree();
    }

    public double getSpeed() {
        return speed.getSpeed();
    }

}
